package cn.leonis.provider01.service.impl;

import cn.leonis.provider01.pojo.Product;
import cn.leonis.provider01.service.ProductService;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.List;

@Service
public class ProductServiceImpl implements ProductService {
    @Override
    public List<Product> selectAllProducts() {
        return Arrays.asList(new Product(1, "Apple", 1200.00),
                new Product(2, "Google", 2350.00),
                new Product(3, "Huawei", 1230.00));
    }
}
